package com.fengke.service;

import java.util.List;

import com.fengke.service.vo.MemberVO;
import com.fengke.service.vo.OrderVO;
import com.fengke.service.vo.PaymentVO;

public interface OrderService {

	Integer researchOrderListSize(OrderVO orderVO) throws Exception;

	List<OrderVO> researchOrderList(OrderVO orderVO, int offset, int limit) throws Exception;

	OrderVO researchOrderById(OrderVO orderVO) throws Exception;

	int deleteOrderByIds(List<String> idList) throws Exception;

	Integer researchPaymentVOListSize(PaymentVO paymentVO) throws Exception;

	List<PaymentVO> researchPaymentVOList(PaymentVO paymentVO, int offset, int limit) throws Exception;

	PaymentVO researchPaymentVOById(PaymentVO paymentVO) throws Exception;

	OrderVO createOrder(OrderVO orderVO) throws Exception;

	PaymentVO createPayment(PaymentVO paymentVO) throws Exception;

	void updateOrderVOPaymentStatus(OrderVO orderVO) throws Exception;

	void updatePaymentVOStatus(PaymentVO paymentVO) throws Exception;
	/**
	 * 将超时订单处理掉 45分钟
	 * @throws Exception
	 */
	void updateTimeoutNopaidOrder() throws Exception;

	MemberVO researchMemberOrders(MemberVO memberVO) throws Exception;

	void updateOrderVOStatus(OrderVO orderVO) throws Exception;
	/**
	 * 同行人可见
	 * 
	 * @param orderVO
	 * @throws Exception
	 */
	void associateShow(OrderVO orderVO) throws Exception;

}
